<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <div id="app">
        <p>{{msg}}</p>
        <h3 v-text="count">v-text</h3>
        <h3 v-text="msg">v-text</h3>
        <h3 v-html="node">v-html</h3>
        <input type="text" v-model="count">
        <button v-on:click="handler">点击</button>
    </div>
    <script src="js/observer.js"></script>
    <script src="js/compiler.js"></script>
    <script src="js/vue.js"></script>
    <script defer>
        var vm = new Vue({
            el: '#app',
            data: {
                msg: 'hellow vue',
                count: 1000,
                obj: {
                    a: 12
                },
                node: '<p>456789</p>'
            },
            methods: {
                handler() {
                    console.log('点击事件触发');
                }
            }
        })
    </script>
</body>

</html>